using System;
using System.Collections.Generic;
using System.Text;

namespace Objects
{
    public class ThongTinDuyet
    {
        #region ThongTinDuyet variables

        
        private String _MaThanhToan;
        private String _TenMauThe;
        private String _NgayDuyet;
        private String _TenNguoiDung;
      
        private int _TrangThaiDuyet;

        #endregion

        #region ThongTinDuyet properties

        public String NgayDuyet
        {
            get { return _NgayDuyet; }
            set { _NgayDuyet = value; }
        }

        public String TenNguoiDung
        {
            get { return _TenNguoiDung; }
            set { _TenNguoiDung = value; }
        }

        public String MaThanhToan
        {
            get { return _MaThanhToan; }
            set { _MaThanhToan = value; }
        }

        public String TenMauThe
        {
            get { return _TenMauThe; }
            set { _TenMauThe = value; }
        }

        public int TrangThaiDuyet
        {
            get { return _TrangThaiDuyet; }
            set { _TrangThaiDuyet = value; }
        }


        #endregion

        #region IPopulatable<ThongTinDuyet> Members

        public ThongTinDuyet Populate(System.Data.DataRow reader)
        {
            ThongTinDuyet item = new ThongTinDuyet();

            item.NgayDuyet = Convert.ToString(reader["NgayDuyet"].ToString());
            item.TenNguoiDung = Convert.ToString(reader["TenNguoiDung"].ToString());
            
            item.MaThanhToan = Convert.ToString(reader["MaThanhToan"].ToString());
            item.TenMauThe = Convert.ToString(reader["TenMauThe"].ToString());

            item.TrangThaiDuyet = Convert.ToInt32(reader["TrangThaiDuyet"].ToString());

            return item;
        }

        #endregion
    }
}
